﻿using HiSport.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Application.Service.Function.ReserveSiteManagement.Dtos
{
    public class LockSiteDto
    {
    }

    /// <summary>
    /// 批量锁定场地Dto
    /// </summary>
    public class BatchLockSiteInputDto
    {
        /// <summary>
        /// 锁定开始时间
        /// </summary>
        [Required]
        public DateTime StartLockTime { get; set; }

        /// <summary>
        /// 锁定结束时间
        /// </summary>
        [Required]
        public DateTime EndLockTime { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [Required, MaxLength(20)]
        public string StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Required, MaxLength(20)]
        public string EndTime { get; set; }

        /// <summary>
        /// 选择周
        /// </summary>
        public List<DayOfWeek> WeekList { get; set; }

        /// <summary>
        /// 场地Id
        /// </summary>
        [Required]
        public List<long> SiteIds { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ MaxLength(300)]
        public string Remark{ get; set; }
    }


    /// <summary>
    /// 锁定场地Dto
    /// </summary>
    public class LockSiteInputDto
    {
        /// <summary>
        /// 锁定时间
        /// </summary>
        public DateTime LockTime { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [Required, MaxLength(20)]
        public string StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Required, MaxLength(20)]
        public string EndTime { get; set; }

        /// <summary>
        /// 场地Id
        /// </summary>
        public long SiteId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(300)]
        public string Remark { get; set; }

    }

   
}
